﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userRdit.aspx.cs" Inherits="GPCSC.Web.SYS_ORG.userRdit" %>
<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="NickLee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
      <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
                <link type="text/css" rel="Stylesheet" href="../Css/tableCss.css" />
     
      <link type="text/css" rel="Stylesheet" href="../Css/combobox.css" />

     <link href="../Css/main.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" src="../scripts/jquery-1.6.2.min.js"></script>

  <script type="text/javascript" src="../Scripts/validator/jquery.validate.min.js"></script>
<script type="text/javascript" src="../Scripts/validator/messages_cn.js"></script>
     <script>

         $(document).ready(function () { // 绑定keyup和change事件 
             $("#<%=Drop.ClientID %>").bind("change", function () {
                 if ($(this).val() != "") {
                     // 这里需要注意，$(this).text()获取的是整个集合的text属性内容，所以需要再过滤下，把选中的项取出来
                     //                 $("#message").text("Text: " + $(this).find(":selected").text() + "Value: " + $(this).val());
                     document.getElementById('MtxtD_CL_ROLEname').value = $(this).find(":selected").text();
                     document.getElementById('MtxtD_CL_ROLEOID_PK').value = $(this).val();
                 }
             });
             $.ajax({
                 type: "POST",
                 url: "../AJAX/ldgblb.ashx",
                 dataTyle: "plain",
                 success: function (ResponseText) {


                     $("#sdg").html(ResponseText);

                 }
             });
             //js解析xml
             //             var url = "ldgblb.xml";
             //             var xmlDoc;
             //             if (window.ActiveXObject) {
             //                 xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
             //                 xmlDoc.async = false;
             //                 xmlDoc.load(url);
             //                 var nodes = xmlDoc.documentElement.childNodes;
             //                 //  alert(nodes.length);
             //                 var yourSelect = document.getElementById("sdg");
             //                 for (i = 0; i < nodes.length; i++) {
             //                     var value = nodes.item(i).childNodes.item(0).text;
             //                     //                     alert(value);
             //                     var yourOption = document.createElement("option");



             //                     yourOption.text = value;
             //                     yourOption.value = value;
             //                     yourSelect.appendChild(yourOption);
             //                     alert(yourOption.value);
             //                 }
             //             }
             //             else if (document.implementation && document.implementation.createDocument) {
             //                               xmlDoc = document.implementation.createDocument("", "", null);
             //                               xmlDoc.load(url);

             //                             var value = xmlDoc.getElementsByTagName("text");
             //                             var dd= value.length;
             //                               for (i = 0; i < value.length; i++) {
             //                               } 
             //             }
             $('#form1').validate({});
         });

       </script>
   
     <script>

         function TreeView1_onNodeSelect(sender, eventArgs) {
             //             ComboBox1.set_text(eventArgs.get_node().get_text());

             document.getElementById('MtxtD_CL_ROLEname').value = $("#<%=Drop.ClientID %>").select().text();
             document.getElementById('MtxtD_CL_ROLEOID_PK').value = $("#<%=Drop.ClientID %>").select().val();
            
         }
         function TreeView1_onNodeSelects(sender, eventArgs) {
             ComboBox2.set_text(eventArgs.get_node().get_text());
             document.getElementById('MtxtD_POSTName').value = eventArgs.get_node().get_text();
             document.getElementById('MtxtD_CL_POSTID_PK').value = eventArgs.get_node().get_id();
             ComboBox2.collapse();
         }
         function selects() {
             var sd = $("#ddlRegType").val();

             document.getElementById("MtxtD_PD_CompanyName").value = sd;
         }
         function selectss() {
             var sd = $("#sdg").val();
            
             document.getElementById("MtxtD_DepartName").value = sd;
         }
     </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300" class="tittle">当前位置：用户管理操作界面</td>
      </tr>
    </table></td>
    <td align="right" background="../images/1.gif" style="padding-right:20px;">
    <a href="userList.aspx" class="returna">
        返回    
    </a>
    </td>
  </tr>
</table>
<%--    <div style="margin-top:20px; float:none;">
    <div style="text-align:left; width:50%;  height:50px; vertical-align:bottom; ">
    <img src="../images/right2.gif" />
    <strong style="color:#0F5A8C">用户管理操作</strong>
    </div>
    </div>--%>
    <div style=" margin-right:50px; margin-left:50px;">
      <table class="table">
      <tr>
      <td class="td" style="background-color:#F1F6FA; ">
      用户名：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_USERNAME" runat="server"  class="required" />
      <input type="text"  id="command" runat="server" style=" display:none" />
      </td>
            <td class="td" style="background-color:#F1F6FA; ">
      密码：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_PWD" runat="server"  class="required" />
    
      </td>
      </tr>
      <tr>
           <td class="td" style="background-color:#F1F6FA; ">
      人员名称：
      </td>
      <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_REALNAME" runat="server" style="width: 200px;"  />
    
      </td>
      <td class="td" style="background-color:#F1F6FA">
     角色：
      </td>
      <td class="td" style=" text-align:left">
                                  <asp:TextBox ID="MtxtD_CL_ROLEname" style=" display:none" runat="server" CssClass="inputBoxBottom" ></asp:TextBox>
                            <asp:TextBox ID="MtxtD_CL_ROLEOID_PK" runat="server" Text="1224a88c-59fb-42c0-ae2e-b5a2f623b653" style=" display:none" CssClass="inputBoxBottom" ></asp:TextBox>
         <asp:DropDownList ID="Drop"  DataTextField="ROLENAME" DataValueField="CL_ROLE_SOID"  runat="server">
          </asp:DropDownList>

      </td>
      </tr>
      <tr>
                 <td class="td" style="background-color:#F1F6FA; ">
      政治面貌：
      </td>
      <td class="td" style=" text-align:left">
                                        <asp:TextBox ID="MtxtD_PD_CompanyName" runat="server" CssClass="inputBoxBottom" style=" display:none" ></asp:TextBox>
            <select id="ddlRegType" runat="server" onchange="selects()">
                           <option>
            --请选择--
            </option>
            <option value="中共党员">
            中共党员
            </option> 
           <option value="民主党派">
            民主党派
            </option>
            <option value="非党派">
            非党派
            </option>
            <option value="群众">
            群众
            </option>
            <option value="其他">
            其他
            </option> 
            </select>
    
      </td>
      <td class="td" style="background-color:#F1F6FA">
          单位：
      </td>
      <td class="td" style=" text-align:left">
      
                            <asp:TextBox ID="MtxtD_CL_POSTID_PK" style=" display:none" runat="server" CssClass="inputBoxBottom" ></asp:TextBox>
 <NickLee:ComboBox ID="ComboBox2" runat="server" CssClass="comboBox" AutoFilter="False" 
                                AutoHighlight="False" AutoComplete="False" AutoPostBack="False" HoverCssClass="comboBoxHover"
                                FocusedCssClass="comboBoxHover" TextBoxCssClass="comboTextBox" DropDownCssClass="comboDropDown"
                                ItemCssClass="comboItem" ItemHoverCssClass="comboItemHover" SelectedItemCssClass="comboItemHover"
                                DropHoverImageUrl="../images/drop_hover.gif" DropImageUrl="../images/drop.gif"
                                Width="200" DropDownHeight="297" DropDownWidth="200" Enabled="True" TextBoxEnabled="True">
                                <DropDownContent>
                                
                                
                                <NickLee:TreeView ID="TreeView2" Height="297" Width="200" DragAndDropEnabled="false"
                                        NodeEditingEnabled="false" KeyboardEnabled="true" CssClass="TreeView" NodeCssClass="TreeNode"
                                        SelectedNodeCssClass="SelectedTreeNode" HoverNodeCssClass="HoverTreeNode" NodeEditCssClass="NodeEdit"
                                        LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16"
                                        ItemSpacing="0" NodeLabelPadding="3" ImagesBaseUrl="../images/" LineImagesFolderUrl="../images/"
                                        ParentNodeImageUrl="folders.gif" LeafNodeImageUrl="folder.gif" ShowLines="true"
                                        EnableViewState="true" runat="server" >
                                        <ClientEvents>
                                            <NodeSelect EventHandler="TreeView1_onNodeSelects" />
                                        </ClientEvents>
                                    </NickLee:TreeView>
                                </DropDownContent>
                            </NickLee:ComboBox>
                             <asp:TextBox ID="MtxtD_POSTName" runat="server" CssClass="inputBoxBottom" ></asp:TextBox>
                                    </td>
      </tr>
      <tr runat="server" id="buttontr">
                 <td class="td" style="background-color:#F1F6FA; ">
      领导干部类别：
      </td>
      <td class="td" style=" text-align:left">
      <asp:TextBox ID="MtxtD_DepartName" runat="server" style=" display:none" CssClass="inputBoxBottom" ></asp:TextBox>
            <select id="sdg" runat="server" onchange="selectss()">
    
          
            </select>
    
      </td>
      <td class="td" style="background-color:#F1F6FA; ">
      职务
      </td>
       <td class="td" style=" text-align:left">
      <input type="text" id="MtxtD_Contact" runat="server"   />
   
      </td>
      </tr>
      <tr>
   <td class=" tdC" style=" text-align:left"> 
  手机号：
   </td>
   <td class="td" >
   <input  type="text" runat="server" id="MtxtD_TEL" />
   </td>
            <td colspan="2" align ="center">
          <asp:Button ID="Button1" runat="server" Text="保存" CssClass="buttonCss" 
              onclick="Button1_Click" />
          <input type="button" value="重置" class="buttonCss" onclick="window.location.reload();" style="margin-left:10px;" />
      </td>
      
      </tr>
      </table>
      </div>

    </div>
    </form>
</body>
</html>
